package HomeWork;
import java.util.Scanner;

import java.util.Scanner;

public class SimulatedLoginTest {
    public static void main(String[]args){

        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入你的用户名:");
        String userName = scanner.next();
        System.out.println("请输入你的密码:");
        String password = scanner.next();

        SimulatedLogin simulatedlogin = new SimulatedLogin();
        boolean res = simulatedlogin.login(userName,password);
        if(res) {
            System.out.println("登陆成功，欢迎" + userName);
        }else{
            System.out.println("登陆失败，用户名或密码错误！");

        }
    }
}
